using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ZhanDouView
{
    /* public GameObject BigBean, smallBean;*/
    public Text dj;
    public Slider slider;
    public Transform can;
    public Text textTime;
    public GameObject play;
    public void OnCreatPanel()
    {
        InitView();
    }
    public void InitView()
    {
        play = GameObject.Find("Canvas/Player");
        can = GameObject.Find("Canvas").transform;
        slider = can.Find("ZhanDou/Slider").GetComponent<Slider>();
        dj= can.Find("ZhanDou/Slider/dj/DJTex").GetComponent<Text>();
        textTime = can.Find("Time").GetComponent<Text>();
        slider.value = 0;
    }
    public void OnUpdateLevel(int lv)
    {
        dj.text = lv.ToString();
    }

    internal void OnUpdateUITime(int fen, int miao)
    {
        textTime.text = fen + " : " + miao;
    }
}
